package com.tjetc.service;

import com.github.pagehelper.PageInfo;
import com.tjetc.domain.Hospital;
import com.tjetc.vo.Result;

import java.util.List;

public interface HospitalService{


    int deleteByPrimaryKey(Integer id);

    int insert(Hospital record);

    int insertSelective(Hospital record);

    Hospital selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Hospital record);

    int updateByPrimaryKey(Hospital record);

    Result selectByIdWithDepartments(Integer id);

    Result selHosByPage(Integer curPage);

    List<Hospital> listHospital(String name, String address);

    Result findByName(String name);

    Result findByHosDep(String hosInput, String depInput);

    Result selAll(Integer sgId, String location,Integer pageSize);

    Result getCountHos();

    Result getAllDistrict();

    Result getHosByDis(String district,String level);

    PageInfo<Hospital> getAllByName(Integer curPage, Integer pageSize, String name);

    Result addHos(Hospital hospital);

    Result deleteById(Integer id);

    Result selByPage(Integer curPage, Integer pageSize, String name);

    Result update(Hospital hospital);

    Result delete(Integer id);

    Result forceDel(Integer id);

    Result add(Hospital hospital);

    Result selAllhospital();

    Result updateHos(Integer id, String desc, String guidance, String prompt);
}
